package vashion.azeroth.contant.item;

import lombok.Getter;

/**
 * Created by tingting on 15/8/31.
 * 商品状态枚举
 */
public enum ItemStatusEnum {

    SYSTEM_DELETE(-1, "系统删除"),
    SELF_DELETE(0, "卖家自己删除"),
    ORIGIN_STATUS(1, "正常"),
    PRE_ORIGIN(4, "预售"),;

    private
    @Getter
    int status;
    private
    @Getter
    String meaning;

    private ItemStatusEnum(int status, String meaning) {
        this.status = status;
        this.meaning = meaning;
    }

    /**
     * 是否是正常状态
     *
     * @param status
     * @return
     */
    public static boolean isOriginStatus(int status) {

        return status == ItemStatusEnum.ORIGIN_STATUS.status;
    }


}
